package com.zhitan.ems.app.stat.config.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhitan.ems.app.stat.config.entity.ElectricityTypeSettingItemEntity;
/**
 * 点峰平谷配置项
 * @author zhitan
 * 
 * @date 2025-09-20 09:56:55
 */
@Mapper
public interface ElectricityTypeSettingItemMapper extends BaseMapper<ElectricityTypeSettingItemEntity> {
    /**
     * 根据设置ID查询配置项
     * @param settingId 设置ID
     * @return 配置项列表
     */
    @Select("SELECT * FROM ems_electricity_type_setting_item WHERE setting_id = #{settingId} AND is_delete = 0")
    List<ElectricityTypeSettingItemEntity> selectBySettingId(@Param("settingId") Long settingId);
}